import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { BrowserRouter } from "react-router-dom";
import { Toaster } from 'sonner';
import { HelmetProvider } from 'react-helmet-async';
import { DynamicHtml } from './components/DynamicHtml';
import './i18n';
import App from "./App.tsx";
import "./index.css";

createRoot(document.getElementById("root")!).render(
  <StrictMode>
    <BrowserRouter>
      <HelmetProvider>
        <DynamicHtml>
          <App />
          <Toaster />
        </DynamicHtml>
      </HelmetProvider>
    </BrowserRouter>
  </StrictMode>
);
